 <?php
 
    session_start ();
    include 'function.php';
    display_header();
    if (isset($_SESSION['login']) && isset($_SESSION['mdp'])) {
        
        $ostype = htmlentities($_GET['ostype']);
        if (isset($ostype)) {
            
            //script pour le slider
            
            echo '<center><img src="img/memoire.jpg"></center><br><br>
                <!-- Formulaire demande du nom et de la ram -->
                <form method="post" action="creation3.php">
                <legend>Nom du cloud:</legend>
                <input type=text name="nom"><br>
                <legend>Memoire du cloud(Mo):</legend>
                <div id="slider"></div>
                
                <!-- Script pour le slider -->
                <script>
                    var sld = new dhtmlxSlider(slider, 250,"ball",false,128,512,128,128);
                    sld.setImagePath("include/slider/images/");
                    sld.init();
                    
                    sld.attachEvent("onChange",function(newValue,sld){
                    
                    document.getElementById("memoire").value=newValue;
                    
                    })
                </script>
                
                <input type="text" id="memoire" value="128" readonly="readonly" name="memoire">
                <input type="text" value='.$ostype.' style="display:none" name="ostype">
                <input type="submit" value="Envoyer">
                </form>';
        }
    
    } 
    
    else { 
        header("Refresh: 0; URL=index.php"); 
    }

    display_footer();
    is_log();
    
?>
